<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<html>
<head>
<title>Insert title here</title>
<script type="text/javascript" src="/intraweb/js/jquery-1.8.0.js" charset="UTF-8"></script>
<script type="text/javascript" src="/intraweb/js/ajax.js" charset="UTF-8"></script>
<script type="text/javascript">

	function goLogin() {
		var id = document.getElementById('id').value;
		var pw = document.getElementById('pw').value;
		
		var url = "/commMap/doLogin.do?" + "id=" + id +  "&pw=" + pw;
		
		ajaxcall( url, "POST", "", "", success, "");
		
	}
	
	function success() {
		console.log('성공');
	}
	
</script>

</head>
<body>
	<form name="login">
		<table>
			<tr>
				<td>아이디 </td>
				<td>
					<input type="text" name="id" id="id"  size="10">
				</td>
			</tr>
			<tr>
				<td>패스워드 </td>
				<td>
					<input type="text" name="pw" id="pw"  size="10">
				</td>
			</tr>
			<tr>
				<td colspan="2">
					<input type="button" value="로그인" onclick="goLogin();"> 
				</td>
			</tr>
		</table>
		
	</form>
</body>
</html>